package com.csx.governance.traffic.adm.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author cuisongxu
 * @date 2023/4/23 16:24
 */
@Data
@Schema(description = "导入结果传输实体")
public class ImportResultDTO<T> {

    @Schema(description = "重复处理策略码: 0: 跳过; 1 覆盖; 2 终止")
    private Integer repeatStrategyCode;

    @Schema(description = "导入成功的数量")
    private Integer successCount;

    @Schema(description = "重复数据的数量")
    private Integer repeatCount;

    @Schema(description = "重复的数据")
    private List<T> repeatData;

    @Schema(description = "是否成功")
    private Boolean success;

    @Data
    public static class SwimLaneRouteRuleKDTO {

        private String serviceName;

        private List<String> repeatSwimLandIds;

    }
}
